<h3>新建类别</h3>

<% form_for(@procate) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :identity_name %>
    <%= f.text_field :identity_name %>
  </p>
  <p>
    <%= f.label :description %>
    <%= f.text_field :description %>
  </p>
  <p>
    <%= f.label :parent_id %>

    <%= f.collection_select :parent_id,Procate.roots,:id,:description,:include_blank=>"请选择父类" %>
  </p>
  <p>
    <%= f.label :template_category_id %>
    <%= f.collection_select :template_category_id,TemplateCategory.all,:id,:display_name,:include_blank=>"请选择类属性模板" %>
  </p>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', procates_path %>
